package com.scau.clothes.service.impl;

import com.scau.clothes.dao.ClothesStockDao;
import com.scau.clothes.pojo.ClothesStock;
import com.scau.clothes.service.ClothesStockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClothesStockServiceImpl implements ClothesStockService{
    @Autowired
    ClothesStockDao clothesStockDao;


    @Override
    public void addStock(ClothesStock cs) {
        clothesStockDao.addStock(cs);
    }

    @Override
    public ClothesStock getClothesStockByClothesId(int id) {
        return null;
    }

    @Override
    public void updateStockByClothesId(int clothesId, int num) {
        clothesStockDao.updateStockByClothesId(clothesId,num);
    }
}
